package com.market.common.vo;

import lombok.Getter;

/**
 * 业务状态封装枚举类
 */
@Getter
public enum ResponseCode {
    SUCCESS(200, "success"),
    ERROR(404, "error"),
    TEST_ERROR(-1, "测试异常信息"),
    SAVE_USER_ERROR(400001, "保存用户异常");
    private int status;
    private String msg;

    ResponseCode(int status, String msg) {
        this.status = status;
        this.msg = msg;
    }
}
